const router = require('koa-router')()
const { getRoleList, queryRole, addRole, delRole } = require("../controllers/roleController")

router.prefix('/roles')

// 角色列表
router.get('/list', getRoleList)
// id查询角色
router.get("/query", queryRole)
// 添加角色
router.post("/add", addRole)
// 删除角色
router.delete("/remove", delRole)

module.exports = router